//
//  HZCartCellModel.h
//  app
//
//  Created by 刘华舟 on 15/5/4.
//  Copyright (c) 2015年 hdaren. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "SNGiftModel.h"
#import "SNPromotionModel.h"

typedef NS_ENUM(NSInteger, HZCartTableViewCellType) {
    HZCartTableViewCellTypeShoppingCart,
    HZCartTableViewCellTypeExchangeGoods
};

@interface HZCartCellModel : NSObject

@property (assign, nonatomic) HZCartTableViewCellType cellType;

@property (assign, nonatomic, getter=isSelected) BOOL selected;
@property (strong, nonatomic) NSString *picURL;
@property (strong, nonatomic) NSString *picWidth;
@property (strong, nonatomic) NSString *picHeight;
@property (strong, nonatomic) NSString *goodsID;
@property (strong, nonatomic) NSString *goodsTitle;
@property (strong, nonatomic) NSString *goodsPriceNow;
@property (strong, nonatomic) NSString *goodsPriceOriginal;
@property (strong, nonatomic) NSString *goodsCountNum;

@property (strong, nonatomic, readonly) NSString *productType;            //商品类型 normal 正常商品 timesale 限时特卖 gift 赠品

@property (strong, nonatomic, readonly) NSString *srvStartTime; //服务器开售时间
@property (strong, nonatomic, readonly) NSString *srvEndTime;   //服务器结束时间

@property (assign, nonatomic) BOOL canBuy;


@property (strong, nonatomic) NSString *actID;
@property (strong, nonatomic) NSString *shopID;
@property (strong, nonatomic) NSString *shopName;
@property (strong, nonatomic) NSString *reserveNum;     //

@property (strong, nonatomic, readonly) SNGiftModel *giftModel;
@property (strong, nonatomic, readonly) NSArray *promotionArray;
@property (strong, nonatomic, readonly) NSArray *patterns;

@property (assign, nonatomic) CGFloat cellHeight;


+ (instancetype)modelWithDictionary:(NSDictionary *)data type:(HZCartTableViewCellType)type;
- (instancetype)initWithDictionary:(NSDictionary *)data type:(HZCartTableViewCellType)type;

@end
